package com.edmendst.xmall.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;

@Component
@TableName("admin")
public class Admin {
    @TableId
    private Integer adminId;

    private String adminName;

    private String adminPassword;

    private Byte adminPermissionLevel;

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName == null ? null : adminName.trim();
    }

    public String getAdminPassword() {
        return adminPassword;
    }

    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword == null ? null : adminPassword.trim();
    }

    public Byte getAdminPermissionLevel() {
        return adminPermissionLevel;
    }

    public void setAdminPermissionLevel(Byte adminPermissionLevel) {
        this.adminPermissionLevel = adminPermissionLevel;
    }
}